<layout name="page" />
<block name="content">
	{:widget('page_header/simple',array('name'=>$row_info['name'].':所属成员','search'=>'S'))}
	<div class="operate-panel">
		<a onclick="go_return_url()" class="btn btn-return">返回</a>
		<i class="mid"></i>
		<a onclick="add()" class="btn btn-normal">添加成员</a>
		<a onclick="del()"class="btn btn-del">删除</a>
	</div>
	<!-- 列表显示区域  -->
	<div class="sub">
		<div class="table">
			<ul>
				<li class="thead">
					<span class="w3"><label class="checkbox">
							<input type="checkbox"class="toggle-select-all" data="id[]" />
							<i class="icon"></i> </label></span>
					<span class="w10">员工编号</span>
					<span class="w19">姓名</span>
					<span class="w10 x1">部门</span>
					<span class="w10">职位</span>
				</li>
				<if condition="empty($user_list)">
					<li class="no-data">
						没找到数据
					</li>
				</if>
				<form id="form_data" name="form_data" method="post" >
					<input type="hidden" name="group_id" id="group_id" value="{$row_info.id}">
					<foreach name="user_list" val="vo">
						<li class="tbody">
							<span class="w3"><label class="checkbox">
									<input  type="checkbox" name="id[]" value="{$vo.id}" />
									<i class="icon"></i></label></span>
							<span class="w10">{$vo.emp_no}</span>
							<span class="w19 ">{$vo.name}</span>
							<span class="w10 x1">{$vo.dept_name}&nbsp;</span>
							<span class="w10">{$vo.position_name}</span>
						</li>
					</foreach>
				</form>
			</ul>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use('global', function() {
			var fn = {
				add : function() {
					winopen("{:url('add_user',array('group_id'=>$row_info['id']))}", 560, 470);
				},
				del : function() {
					if ($("input:checked[name='id[]']").length < 1) {
						layer.msg("请选择用户");
						return false;
					};
					send_form("form_data", "{:url('del_user')}", "__SELF__");
				}
			};
			win_exp(fn);
		});

	</script>

</block>